package Coffee.controller;

import Coffee.bean.User;
import Coffee.dao.UserDao;
import Coffee.dao.UserDaoImpl;
import Coffee.service.UserService;
import Coffee.service.UserServiceImpl;

import java.util.List;
import java.util.UUID;

public class test1 {
    public static void main(String[] args) {
        User user = new User();
        UserDao userDao = new UserDaoImpl();
        UserService userService = new UserServiceImpl();
        boolean admin = userService.login("admin", "123456");
        System.out.println(admin);
        //  user.setUserid(UUID.randomUUID().toString().replaceAll("-", ""));
    //  user.setUsername("王五");
    //  user.setUserpwd("123456");
    // // userService.insertUser(user);
    //  System.out.println(userService.queryUser("admin1"));
    //  //System.out.println(userDao.delUserbyName("王五"));
    //  //userService.delUserbyName("王五");
    //  System.out.println("请输入要修改的账户");
    //  System.out.println("请输入新的账户名");
    //  System.out.println("请输入新的密码");
    // // System.out.println(userService.updateUser("zhangsan", "张三", "121212"));
    //  List<User> users = userService.queryAll();
    //  users.iterator().forEachRemaining(System.out::println);
    //  userService.login("admin", "123456");


    }
}
